{extend name="base" /}

{block name="title"}富豪区匹配订单{/block}

{block name="main"}
	<div class="content-wrapper">
		<section class="content-header">
			<h1>富豪区匹配订单 <small>英雄联盟</small></h1>
			<ol class="breadcrumb">
				<li><a href="/shuashuale"><i class="fa fa-home"></i> 首页</a></li>
				<li><a href="/shuashuale/appointment/rich"> 交易管理</a></li>
				<li><a href="/shuashuale/appointment/rich"> 富豪区预约匹配</a></li>
				<li class="active">富豪区匹配订单</li>
			</ol>
		</section>

		<section class="content container-fluid">
			<div class="box">
				<div class="box-header">
					<h3 class="box-title"><small>当前预约订单</small></h3>
				</div>
				<div class="box-body table-responsive no-padding">
					<table class="table table-bordered">
						<tr>
							<th>预约时间：</th>
				    		<td>{$appointmentRich.create_time}</td>
				    		<th>预约金额：</th>
				    		<td>{$appointmentRich.appointment_price}</td>
						</tr>
						<tr>
							<th>剩余金额：</th>
							<td>{$appointmentRich.remaining_price}</td>
				    		<th>匹配次数：</th>
				    		<td>{$appointmentRich.to_num}</td>
						</tr>
					</table>
				</div>

				<div class="box-header">
					<h3 class="box-title"><small>可匹配订单</small></h3>
				</div>
				<form action="/shuashuale/appointment/rich/handleMatch" method="post">
					<input type="hidden" name="help_appointment_rich_id" value="{$appointmentRich.help_appointment_rich_id}" />
					<div class="box-body table-responsive no-padding">
						<table class="table table-bordered">
							<tr>
								<th>#</th>
								<th>编号</th>
								<th>用户</th>
								<th>金额</th>
								<th>创建时间</th>
							</tr>
							{volist name='helpGetRichs' id='helpGetRich'}
							<tr>
								<td><input type="checkbox" name="help_get_rich_ids[]" value="{$helpGetRich.help_get_rich_id}"></td>
								<td>{$helpGetRich.order_id}</td>
					    		<td>{$helpGetRich.username}</td>
					    		<td>{$helpGetRich.price}</td>
					    		<td>{$helpGetRich.create_time}</td>
							</tr>
							{/volist}
						</table>
					</div>
					<div class="box-footer clearfix">
						{$helpGetRichs -> render()}
					</div>
					<div class="box-footer clearfix">
						<button type="submit" class="btn btn-success">确认匹配</button>
					</div>
				</form>
			</div>
		</section>
	</div>
{/block}